//
//  PayFactory.h
//  ProjectPublic
//
//  Created by ac-hu on 2018/7/14.
//  Copyright © 2018年 ac hu. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "PayStrategy.h"

typedef enum : NSUInteger {
    PayTypeWx,
    PayTypeAli,
    PayTypeUp,
} PayType;

//管理对象
@interface PayFactory : NSObject

@property(nonatomic,assign)PayType type;
@property(nonatomic,copy)NSString *orderNumber;

+(instancetype)share;

+(id<PayStrategyProtocol>)getPayClass:(PayType)payType;

+(void)payOrder:(id)order succeed:(succeedPay)succeed fail:(failPay)fail;
+(void)monitorResult:(NSURL *)url;
//+(void)payVerifyOrder:(id)order succeed:(succeedPay)succeed fail:(failPay)fail;

@end
